package cn.wolfcode.wolf2w.cloud.msg.feign;

import cn.wolfcode.wolf2w.cloud.msg.feign.hystrix.SmsFeignHystrix;
import cn.wolfode.wolf2w.cloud.commom.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

//指向调用的服务
@FeignClient(name = "msg-server",fallback = SmsFeignHystrix.class)
public interface ISmsFeignApi {
    @GetMapping("/sms/sendVerifyCode")
    JsonResult sendVerifyCode(@RequestParam("phone") String phone);
    @GetMapping("/sms/checkVerifyCode")
    JsonResult checkVerifyCode(@RequestParam("phone")String phone,@RequestParam("verifyCode") String verifyCode);
}
